/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.genipapoconstrucoes.gui;

import javax.swing.JOptionPane;

/**
 *
 * @author Vaniho
 */
public class FrmCadastroFuncionario extends javax.swing.JFrame {

    
    public FrmCadastroFuncionario() {
        initComponents();
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlCadastroUsuario = new javax.swing.JPanel();
        lvlLoginCadastro = new javax.swing.JLabel();
        pwdSenha = new javax.swing.JPasswordField();
        pwdRedigiteSenha = new javax.swing.JPasswordField();
        lblSenhaCadastro = new javax.swing.JLabel();
        lblRedigiteSenhaCadastro = new javax.swing.JLabel();
        txtLogin = new javax.swing.JTextField();
        lblMensagemLogin = new javax.swing.JLabel();
        lblMensagemSenha = new javax.swing.JLabel();
        lblMensagemRedigiteSenha = new javax.swing.JLabel();
        pnlCadastroFuncionario = new javax.swing.JTabbedPane();
        pnlDadosFuncionario = new javax.swing.JPanel();
        lblNome = new javax.swing.JLabel();
        txtNome = new javax.swing.JTextField();
        cdcSexo = new javax.swing.JComboBox();
        lblsexo = new javax.swing.JLabel();
        lblCep = new javax.swing.JLabel();
        txtCep = new javax.swing.JFormattedTextField();
        lblNumeroResidencia = new javax.swing.JLabel();
        txtNumeroResidencia = new javax.swing.JTextField();
        lblEstado = new javax.swing.JLabel();
        cmbEstado = new javax.swing.JComboBox();
        lblFilhos = new javax.swing.JLabel();
        cbxFilhos = new javax.swing.JComboBox();
        lblCPF = new javax.swing.JLabel();
        txtCpf = new javax.swing.JFormattedTextField();
        lblDataNascimento = new javax.swing.JLabel();
        txtDataNascimento = new javax.swing.JFormattedTextField();
        lblRua = new javax.swing.JLabel();
        txtRua = new javax.swing.JTextField();
        lblComplemento = new javax.swing.JLabel();
        txtComplemento = new javax.swing.JTextField();
        lblCidade = new javax.swing.JLabel();
        txtCidade = new javax.swing.JTextField();
        lblTelefone = new javax.swing.JLabel();
        txtTelefone = new javax.swing.JFormattedTextField();
        lblEmail = new javax.swing.JLabel();
        txtEmail = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        btnContinuar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        lblAviso = new javax.swing.JLabel();
        lblNumeroDaCarteira = new javax.swing.JLabel();
        txtNumeroDaCarteira = new javax.swing.JTextField();
        lblEstadoCivil = new javax.swing.JLabel();
        cmbEstadoCivil = new javax.swing.JComboBox();
        lblMensage = new javax.swing.JLabel();
        pnlDadosComerciais = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        btnSalario = new javax.swing.JButton();
        lblSalario = new javax.swing.JLabel();
        cmbCargaHoraria = new javax.swing.JComboBox();
        lblCargaHoraria = new javax.swing.JLabel();
        cbxExperiencia = new javax.swing.JCheckBox();
        cmbCargo = new javax.swing.JComboBox();
        lblCargo = new javax.swing.JLabel();
        lblTransporte = new javax.swing.JLabel();
        cmbTransporte = new javax.swing.JComboBox();
        lblGraulInstrucao = new javax.swing.JLabel();
        cmbGraulInstrucao = new javax.swing.JComboBox();
        lblBanco = new javax.swing.JLabel();
        cmbBanco = new javax.swing.JComboBox();
        lblAgencia = new javax.swing.JLabel();
        txtAgencia = new javax.swing.JTextField();
        lblNumeroConta = new javax.swing.JLabel();
        txtNumeroConta = new javax.swing.JTextField();
        lblDataAdmissao = new javax.swing.JLabel();
        txtDataAdmissao = new javax.swing.JFormattedTextField();
        cmsAprendiz = new javax.swing.JCheckBox();
        cbxDeficiencia = new javax.swing.JCheckBox();
        lblCamposObrigatorios = new javax.swing.JLabel();
        btnCadastrar = new javax.swing.JButton();
        btnVoltar = new javax.swing.JButton();
        btnCancelarDados = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Cadastro Funcionário");

        pnlCadastroUsuario.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Cadastro de Funcionário", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.ABOVE_TOP, new java.awt.Font("Arial", 0, 18))); // NOI18N

        lvlLoginCadastro.setBackground(new java.awt.Color(102, 102, 102));
        lvlLoginCadastro.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lvlLoginCadastro.setText("Login  ID :");

        pwdSenha.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        pwdSenha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pwdSenhaActionPerformed(evt);
            }
        });

        pwdRedigiteSenha.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        lblSenhaCadastro.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblSenhaCadastro.setText("       Senha :");

        lblRedigiteSenhaCadastro.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblRedigiteSenhaCadastro.setText("Redigite sua senha :");

        txtLogin.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        lblMensagemLogin.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblMensagemLogin.setText("Seu ID precisa de ter entre 4 - 16 caracteres!");

        lblMensagemSenha.setFont(new java.awt.Font("Ubuntu", 0, 12)); // NOI18N
        lblMensagemSenha.setText("Sua Senha precisa de ter entre 4 - 16 caracteres!");

        javax.swing.GroupLayout pnlCadastroUsuarioLayout = new javax.swing.GroupLayout(pnlCadastroUsuario);
        pnlCadastroUsuario.setLayout(pnlCadastroUsuarioLayout);
        pnlCadastroUsuarioLayout.setHorizontalGroup(
            pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCadastroUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSenhaCadastro)
                    .addComponent(lvlLoginCadastro)
                    .addComponent(lblRedigiteSenhaCadastro))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlCadastroUsuarioLayout.createSequentialGroup()
                        .addComponent(txtLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lblMensagemLogin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlCadastroUsuarioLayout.createSequentialGroup()
                        .addComponent(pwdRedigiteSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lblMensagemRedigiteSenha, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlCadastroUsuarioLayout.createSequentialGroup()
                        .addComponent(pwdSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lblMensagemSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(90, Short.MAX_VALUE))
        );
        pnlCadastroUsuarioLayout.setVerticalGroup(
            pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCadastroUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lvlLoginCadastro)
                        .addComponent(txtLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblMensagemLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblSenhaCadastro)
                        .addComponent(pwdSenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblMensagemSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlCadastroUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblRedigiteSenhaCadastro)
                        .addComponent(pwdRedigiteSenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblMensagemRedigiteSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlDadosFuncionario.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Dados do Funcionário", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 10))); // NOI18N
        pnlDadosFuncionario.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N

        lblNome.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblNome.setText("Nome :");

        txtNome.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        cdcSexo.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        cdcSexo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Masculino", "Feminino" }));

        lblsexo.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblsexo.setText("Sexo :");

        lblCep.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblCep.setText("CEP :");

        try {
            txtCep.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("#####-###")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        txtCep.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        lblNumeroResidencia.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblNumeroResidencia.setText("Nº da residência : ");

        txtNumeroResidencia.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        lblEstado.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblEstado.setText("Estado :");

        cmbEstado.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        cmbEstado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Acre", "Alagoas", "Amapá", "Amazonas", "Bahia", "Ceará", "Destrito Federal", "Espirito Santo", "Goiás", "Maranhão", "Mato Grosso", "Mato Grosso do Sul", "Minas Gerais", "Paraíba", "Paraná", "Pará", "Pernambuco", "Piauí", "Sergipe", "Rio de Janeiro", "Rio Grande do Norte", "Rio Grande do Sul", "Rondônia", "Roraima", "Santa Catarina", "São Paulo", "Tocantins" }));

        lblFilhos.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblFilhos.setText("Filhos :");

        cbxFilhos.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        cbxFilhos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nenhum", "1~3", "3~5", "6 ou mais." }));

        lblCPF.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblCPF.setText("C.P.F :");

        try {
            txtCpf.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("###.###.###-##")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        txtCpf.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        txtCpf.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCpfActionPerformed(evt);
            }
        });

        lblDataNascimento.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblDataNascimento.setText("Data de Nascimento: ");

        try {
            txtDataNascimento.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##/##/####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        txtDataNascimento.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        lblRua.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        lblRua.setText("Rua / Avenida :");

        txtRua.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N

        lblComplemento.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        lblComplemento.setText("Complemento :");

        txtComplemento.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        txtComplemento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtComplementoActionPerformed(evt);
            }
        });

        lblCidade.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblCidade.setText("Cidade :");

        txtCidade.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N

        lblTelefone.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        lblTelefone.setText("Telefone :");

        try {
            txtTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        txtTelefone.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N

        lblEmail.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        lblEmail.setText("e-mail :");

        txtEmail.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N

        btnContinuar.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        btnContinuar.setText("CONTINUAR");
        btnContinuar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnContinuarActionPerformed(evt);
            }
        });

        btnCancelar.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        btnCancelar.setText("CANCELAR");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        lblAviso.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        lblAviso.setText("Antes de continuar olhe se os campos estão corretos");
        lblAviso.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        lblNumeroDaCarteira.setFont(new java.awt.Font("Ubuntu", 0, 12)); // NOI18N
        lblNumeroDaCarteira.setText("Nº da Carteira Profissional :");

        lblEstadoCivil.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        lblEstadoCivil.setText("Estado Civil :");

        cmbEstadoCivil.setFont(new java.awt.Font("Ubuntu", 0, 11)); // NOI18N
        cmbEstadoCivil.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Solteiro(a)", "Casado(a)", "Víuvo(a)", "Separado(a)" }));

        lblMensage.setName("     "); // NOI18N

        javax.swing.GroupLayout pnlDadosFuncionarioLayout = new javax.swing.GroupLayout(pnlDadosFuncionario);
        pnlDadosFuncionario.setLayout(pnlDadosFuncionarioLayout);
        pnlDadosFuncionarioLayout.setHorizontalGroup(
            pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                                .addComponent(lblCPF)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtCpf, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                                .addComponent(lblCep)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtCep, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(12, 12, 12)
                        .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                                .addComponent(lblsexo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cdcSexo, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblDataNascimento)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtDataNascimento, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                                .addComponent(lblNumeroResidencia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtNumeroResidencia, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(lblNome)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNome))
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addComponent(lblNumeroDaCarteira)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtNumeroDaCarteira, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lblEstadoCivil)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cmbEstadoCivil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lblFilhos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cbxFilhos, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addComponent(lblCidade)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCidade))
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addComponent(lblTelefone)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblEmail)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtEmail))
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addComponent(lblRua)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtRua))
                    .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                        .addComponent(lblComplemento, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtComplemento, javax.swing.GroupLayout.PREFERRED_SIZE, 498, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblMensage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblAviso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnContinuar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnCancelar)
                .addGap(119, 119, 119))
        );
        pnlDadosFuncionarioLayout.setVerticalGroup(
            pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosFuncionarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblNome, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblMensage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(txtCpf)
                    .addComponent(lblsexo)
                    .addComponent(cdcSexo)
                    .addComponent(lblDataNascimento)
                    .addComponent(txtDataNascimento)
                    .addComponent(lblCPF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(2, 2, 2)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNumeroDaCarteira)
                    .addComponent(txtNumeroDaCarteira, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEstadoCivil)
                    .addComponent(cmbEstadoCivil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFilhos, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbxFilhos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCep)
                    .addComponent(txtCep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNumeroResidencia)
                    .addComponent(txtNumeroResidencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCidade)
                    .addComponent(txtCidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRua, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtRua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblComplemento, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtComplemento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblTelefone)
                        .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblEmail)
                        .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosFuncionarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAviso, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnContinuar)
                    .addComponent(btnCancelar))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        pnlCadastroFuncionario.addTab("Dados Funcionários", pnlDadosFuncionario);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Dados Comerciais", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 10))); // NOI18N

        btnSalario.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        btnSalario.setText("R$");

        lblSalario.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblSalario.setText("Salário :");

        cmbCargaHoraria.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cmbCargaHoraria.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "4hrs", "8hrs" }));

        lblCargaHoraria.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblCargaHoraria.setText("Carga Horária :");

        cbxExperiencia.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cbxExperiencia.setText("Experiência");

        cmbCargo.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cmbCargo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Administração", "Caixa", "Gerente", "Motorista", "Serviços Gerais", "Vendedor", " " }));

        lblCargo.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblCargo.setText("Cargo :");

        lblTransporte.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblTransporte.setText("Transporte :");

        cmbTransporte.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cmbTransporte.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Não Possui", "Transporte Próprio", "Onibús", "Outros meios" }));

        lblGraulInstrucao.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblGraulInstrucao.setText("Graul de Instrução :");

        cmbGraulInstrucao.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cmbGraulInstrucao.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "FUNDAMENTAL COMPLETO", "FUNDAMENTAL IMCOMPLETO", "MÉDIO COMPLETO", "MÉDIO IMCOMPLETO", "SUPERIOR COMPLETO", "SUPERIOR IMCOMPLETO" }));

        lblBanco.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblBanco.setText("Banco :");

        cmbBanco.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cmbBanco.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Banco do Brasil", "Bradesco", "ITAÚ", "CAIXA", "Outro..." }));

        lblAgencia.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblAgencia.setText("Agência :");

        txtAgencia.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N

        lblNumeroConta.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblNumeroConta.setText("Nº da Conta :");

        txtNumeroConta.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        txtNumeroConta.setText(" ");

        lblDataAdmissao.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblDataAdmissao.setText("Data de Admissão");

        try {
            txtDataAdmissao.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##/##/####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        txtDataAdmissao.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N

        cmsAprendiz.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cmsAprendiz.setText("Aprendiz");

        cbxDeficiencia.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        cbxDeficiencia.setText("Deficiênte");

        lblCamposObrigatorios.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        lblCamposObrigatorios.setText("Preencher com Atenção!");
        lblCamposObrigatorios.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                                .addComponent(lblCargaHoraria)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cmbCargaHoraria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblSalario)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnSalario, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                                .addComponent(lblCargo)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cmbCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cbxExperiencia)))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(lblTransporte)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cmbTransporte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(lblGraulInstrucao)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cmbGraulInstrucao, 0, 1, Short.MAX_VALUE))
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(lblBanco)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cmbBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(lblAgencia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtAgencia, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(lblNumeroConta)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtNumeroConta, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(lblDataAdmissao)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtDataAdmissao, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(cmsAprendiz)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cbxDeficiencia))))
                            .addComponent(lblCamposObrigatorios, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 52, Short.MAX_VALUE))))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(11, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDataAdmissao)
                    .addComponent(txtDataAdmissao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmsAprendiz)
                    .addComponent(cbxDeficiencia))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblBanco)
                    .addComponent(cmbBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblAgencia)
                    .addComponent(txtAgencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblNumeroConta)
                    .addComponent(txtNumeroConta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTransporte)
                    .addComponent(cmbTransporte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblGraulInstrucao)
                    .addComponent(cmbGraulInstrucao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCargo)
                    .addComponent(cmbCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbxExperiencia))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnSalario, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSalario)
                    .addComponent(cmbCargaHoraria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCargaHoraria))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblCamposObrigatorios, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(13, 13, 13))
        );

        btnCadastrar.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        btnCadastrar.setText("Cadastrar");
        btnCadastrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCadastrarActionPerformed(evt);
            }
        });

        btnVoltar.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        btnVoltar.setText("Voltar");
        btnVoltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVoltarActionPerformed(evt);
            }
        });

        btnCancelarDados.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
        btnCancelarDados.setText("Cancelar");
        btnCancelarDados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarDadosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlDadosComerciaisLayout = new javax.swing.GroupLayout(pnlDadosComerciais);
        pnlDadosComerciais.setLayout(pnlDadosComerciaisLayout);
        pnlDadosComerciaisLayout.setHorizontalGroup(
            pnlDadosComerciaisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosComerciaisLayout.createSequentialGroup()
                .addGap(261, 261, 261)
                .addComponent(btnCadastrar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnVoltar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnCancelarDados)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(pnlDadosComerciaisLayout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 146, Short.MAX_VALUE))
        );
        pnlDadosComerciaisLayout.setVerticalGroup(
            pnlDadosComerciaisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosComerciaisLayout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosComerciaisLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCadastrar)
                    .addComponent(btnVoltar)
                    .addComponent(btnCancelarDados))
                .addContainerGap(97, Short.MAX_VALUE))
        );

        pnlCadastroFuncionario.addTab("Dados Comerciais", pnlDadosComerciais);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(pnlCadastroFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addComponent(pnlCadastroUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlCadastroUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlCadastroFuncionario)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void pwdSenhaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pwdSenhaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_pwdSenhaActionPerformed

    private void txtCpfActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCpfActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCpfActionPerformed

    private void txtComplementoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtComplementoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtComplementoActionPerformed

    private void btnContinuarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnContinuarActionPerformed
      
        if(txtNome.getText().equals("") || txtCpf.getText().equals("   .   .   -  ")||
         txtDataNascimento.getText().equals("  /  /    ")|| txtNumeroDaCarteira.getText().equals("")||
         cmbEstadoCivil.getSelectedIndex() == 0  || txtCep.getText().equals("     -   ")||
         txtNumeroResidencia.getText().equals("")|| cmbEstado.getSelectedIndex()== 0 ||
         txtCidade.getText().equals("")|| txtRua.getText().equals("")|| txtRua.getText().equals("")){
        if(txtNome.getText().equals("")){
           lblNome.setText("* Nome:");
       }else{
           lblNome.setText("Nome:");
       }
       if(txtCpf.getText().equals("   .   .   -  ")){
           lblCPF.setText("* CPF:");
       }else{
           lblCPF.setText("CPF:");
       }
       if(txtDataNascimento.getText().equals("  /  /    ")){
           lblDataNascimento.setText("* Data de Nascimento:");
       }else{
           lblDataNascimento.setText("Data de Nascimento:");
       }
       if(txtNumeroDaCarteira.getText().equals("")){
           lblNumeroDaCarteira.setText("* Nº da Carteira Profissional:");
       }else{
           lblNumeroDaCarteira.setText("Nº da Carteira Profissional:");
       }
       if(cmbEstadoCivil.getSelectedIndex() == 0 ){
           lblEstadoCivil.setText("* Estado Cívil:");
       }else{
           lblEstadoCivil.setText("Estado Cívil:");
       }
       if(txtCep.getText().equals("     -   ")){
           lblCep.setText("* CEP:");
       }else{
           lblCep.setText("CEP:");
       }
       if(txtNumeroResidencia.getText().equals("")){
           lblNumeroResidencia.setText("* Nº da Residência:");
       }else{
           lblNumeroResidencia.setText("Nº da Residência:");
       }
       if(cmbEstado.getSelectedIndex()== 0){
           lblEstado.setText("* Estado:");
       }else{
           lblEstado.setText("Estado:");
       }
       if(txtCidade.getText().equals("")){
           lblCidade.setText("* Cidade:");
       }else{
           lblCidade.setText("Cidade:");
       }
       if(txtRua.getText().equals("")){
           lblRua.setText("* Rua / Avenida:");
       }else{
           lblRua.setText("Rua / Avenida:");
       }
      }else{
           pnlCadastroFuncionario.setSelectedIndex(0);
      }  
    }//GEN-LAST:event_btnContinuarActionPerformed


    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
      dispose();        
    }//GEN-LAST:event_btnCancelarActionPerformed

    private void btnCancelarDadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarDadosActionPerformed
      dispose();
    }//GEN-LAST:event_btnCancelarDadosActionPerformed

    private void btnVoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVoltarActionPerformed
      pnlCadastroFuncionario.setSelectedIndex(0);
    }//GEN-LAST:event_btnVoltarActionPerformed

    private void btnCadastrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCadastrarActionPerformed
       if(txtLogin.getText().equals("") || pwdSenha.getText().equals("") || 
          !pwdSenha.getText().equals(pwdSenha.getText()) ||txtDataAdmissao.getText().equals("  /  /    ") || 
          cmbBanco.getSelectedIndex() == 0 ||txtAgencia.getText().equals("") || 
          txtNumeroConta.getText().equals("")|| cmbTransporte.getSelectedIndex() == 0 ||
          cmbCargo.getSelectedIndex() == 0)
       { 
          if(pwdSenha.getText().equals("")){
              lblSenhaCadastro.setText("* Senha:");
          }else{
              lblSenhaCadastro.setText("Senha:");
          }
          if(!pwdSenha.getText().equals(pwdSenha.getText())){
              lblMensagemRedigiteSenha.setText("Senha Imcompativel");
              lblRedigiteSenhaCadastro.setText("* Redigite sua senha :");
          }
          if(txtDataAdmissao.getText().equals("  /  /    ")){
              lblDataAdmissao.setText("* Data de Admissão:");
          }else{
              lblDataAdmissao.setText("Data de Admissão:"); 
          }
          if(cmbBanco.getSelectedIndex() == 0){
              lblBanco.setText("* Banco:");
          }else{
              lblBanco.setText("Banco:");
          }
          if(txtAgencia.getText().equals("")){
              lblAgencia.setText("* Agência:");
          }else{
              lblAgencia.setText("Agência:");
          }
          if(txtNumeroConta.getText().equals("")){
              lblNumeroConta.setText("* Nº da Conta:");
          }else{
              lblNumeroConta.setText("Nº da Conta:");
          }
          if(cmbTransporte.getSelectedIndex() == 0){
              lblTransporte.setText("* Transporte:");
          }else{
              lblTransporte.setText("Transporte:");
          }
          if(cmbCargo.getSelectedIndex() == 0){
              lblCargo.setText("* Cargo:");                     
          }else{
              lblCargo.setText("Cargo:");
          }
          lblCamposObrigatorios.setText("CAMPOS OBRIGATÓRIOS NÃO PREENCHIDOS");
       }else{
           JOptionPane.showMessageDialog(null,"Sr(a) "+txtNome.getText()+
           "\nFoi Cadastrado com SUCESSO\n"+"Seu login: "+txtLogin.getText()+
           "\nSenha: "+pwdSenha.getText());
       } 
    }//GEN-LAST:event_btnCadastrarActionPerformed


    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroFuncionario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroFuncionario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroFuncionario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroFuncionario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                
                new FrmCadastroFuncionario().setVisible(true);
                
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCadastrar;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnCancelarDados;
    private javax.swing.JButton btnContinuar;
    private javax.swing.JButton btnSalario;
    private javax.swing.JButton btnVoltar;
    private javax.swing.JCheckBox cbxDeficiencia;
    private javax.swing.JCheckBox cbxExperiencia;
    private javax.swing.JComboBox cbxFilhos;
    private javax.swing.JComboBox cdcSexo;
    private javax.swing.JComboBox cmbBanco;
    private javax.swing.JComboBox cmbCargaHoraria;
    private javax.swing.JComboBox cmbCargo;
    private javax.swing.JComboBox cmbEstado;
    private javax.swing.JComboBox cmbEstadoCivil;
    private javax.swing.JComboBox cmbGraulInstrucao;
    private javax.swing.JComboBox cmbTransporte;
    private javax.swing.JCheckBox cmsAprendiz;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JLabel lblAgencia;
    private javax.swing.JLabel lblAviso;
    private javax.swing.JLabel lblBanco;
    private javax.swing.JLabel lblCPF;
    private javax.swing.JLabel lblCamposObrigatorios;
    private javax.swing.JLabel lblCargaHoraria;
    private javax.swing.JLabel lblCargo;
    private javax.swing.JLabel lblCep;
    private javax.swing.JLabel lblCidade;
    private javax.swing.JLabel lblComplemento;
    private javax.swing.JLabel lblDataAdmissao;
    private javax.swing.JLabel lblDataNascimento;
    private javax.swing.JLabel lblEmail;
    private javax.swing.JLabel lblEstado;
    private javax.swing.JLabel lblEstadoCivil;
    private javax.swing.JLabel lblFilhos;
    private javax.swing.JLabel lblGraulInstrucao;
    private javax.swing.JLabel lblMensage;
    private javax.swing.JLabel lblMensagemLogin;
    private javax.swing.JLabel lblMensagemRedigiteSenha;
    private javax.swing.JLabel lblMensagemSenha;
    private javax.swing.JLabel lblNome;
    private javax.swing.JLabel lblNumeroConta;
    private javax.swing.JLabel lblNumeroDaCarteira;
    private javax.swing.JLabel lblNumeroResidencia;
    private javax.swing.JLabel lblRedigiteSenhaCadastro;
    private javax.swing.JLabel lblRua;
    private javax.swing.JLabel lblSalario;
    private javax.swing.JLabel lblSenhaCadastro;
    private javax.swing.JLabel lblTelefone;
    private javax.swing.JLabel lblTransporte;
    private javax.swing.JLabel lblsexo;
    private javax.swing.JLabel lvlLoginCadastro;
    private javax.swing.JTabbedPane pnlCadastroFuncionario;
    private javax.swing.JPanel pnlCadastroUsuario;
    private javax.swing.JPanel pnlDadosComerciais;
    private javax.swing.JPanel pnlDadosFuncionario;
    private javax.swing.JPasswordField pwdRedigiteSenha;
    private javax.swing.JPasswordField pwdSenha;
    private javax.swing.JTextField txtAgencia;
    private javax.swing.JFormattedTextField txtCep;
    private javax.swing.JTextField txtCidade;
    private javax.swing.JTextField txtComplemento;
    private javax.swing.JFormattedTextField txtCpf;
    private javax.swing.JFormattedTextField txtDataAdmissao;
    private javax.swing.JFormattedTextField txtDataNascimento;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtLogin;
    private javax.swing.JTextField txtNome;
    private javax.swing.JTextField txtNumeroConta;
    private javax.swing.JTextField txtNumeroDaCarteira;
    private javax.swing.JTextField txtNumeroResidencia;
    private javax.swing.JTextField txtRua;
    private javax.swing.JFormattedTextField txtTelefone;
    // End of variables declaration//GEN-END:variables
}
